package com.woate.wingframework.persistent.api;

import com.woate.wingframework.persistent.api.Pagination;

import java.util.List;

public interface SelectMapper<T,K> {

    String SELECT_BY_PRIMARY_KEY = "selectByPrimaryKey";
    String SELECT = "select";
    String SELECT_ALL = "selectAll";
    String SELECT_PAGE = "selectPage";
    List<T> select(T entity);
    List<T> selectAll();
    Pagination<T> selectPage(Pagination<T> pagination);
    T selectByPrimaryKey(K pk);
}
